package com.yunquan.ohana.ui.history

import android.app.Application
import androidx.lifecycle.LifecycleOwner
import com.yunquan.ohana.base.bus.RxBus
import com.yunquan.ohana.base.bus.RxSubscriptions
import com.yunquan.ohana.base.bus.event.SingleLiveEvent
import com.yunquan.ohana.base.ui.BaseViewModel
import com.yunquan.ohana.entity.EventEntity
import com.yunquan.ohana.entity.EventType
import com.yunquan.ohana.utils.L
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
import io.reactivex.rxjava3.disposables.Disposable

class HistoryViewModel(application: Application) : BaseViewModel(application) {

    val ui = SingleLiveEvent<Int>()

    override fun onEvent(event: EventEntity) {
        super.onEvent(event)
        if (event.type == EventType.SEND_TO_FRAMES) {
            ui.value = 0
        }
    }
}